package ch.ethz.fcl.metrobuzz.controller.gui.twl.treetable;

import de.matthiasmann.twl.PropertySheet;
import de.matthiasmann.twl.Widget;
import de.matthiasmann.twl.model.SimpleProperty;
import de.matthiasmann.twl.model.SimplePropertyList;

public class PropertySheetDialog {
	public Widget create() {
		// FadeFrame ff = new FadeFrame();

		PropertySheet ps = new PropertySheet();
		ps.setTheme("/table");
		// ps.getPropertyList().addProperty(
		// new SimpleProperty<String>(String.class, "Name", "Hugo"));
		SimplePropertyList spl = new SimplePropertyList("Details");
		spl.addProperty(new SimpleProperty<String>(String.class, "City",
				"Nowhere"));
		ps.getPropertyList().addProperty(spl);

		// ScrollPane scrollPane = new ScrollPane(ps);
		// scrollPane.setTheme("/tableScrollPane");
		// scrollPane.setFixed(ScrollPane.Fixed.HORIZONTAL);

		// ff.setTheme("scrollPaneDemoDialog1");
		// ff.setTitle("Property Sheet");
		// ff.add(scrollPane);
		//
		// ff.setSize(500, 300);
		// ff.adjustSize();
		return ps;
	}
}
